PARSER=parser
DUG=debug
HTTP=http_server

cc=g++

.PHONY:all
all:$(PARSER) $(DUG) $(HTTP) 

$(PARSER):parser.cc
	$(cc) -o $@ $^ -lboost_system -lboost_filesystem -std=c++11
$(DUG):debug.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11 
$(HTTP):http_server.cc
	$(cc) -o $@ $^ -ljsoncpp -std=c++11 -lpthread

.PHONY:clean
clean:
	rm -rf $(PARSER) $(DUG) $(HTTP)
